package main

import (
	"github.com/gin-gonic/gin"
	"net/http"
	"github.com/unrolled/render"
)

func main() {
	router := gin.Default()

	r := render.New(render.Options{
		Directory:  "templates",
		Layout:     "index",
		Extensions: []string{".html"},
	})

	router.GET("/index2", func(c *gin.Context) {
		r.HTML(c.Writer, http.StatusOK, "page1", "")
	})

	router.Run(":8089")
}
